package hhf.flex.soundapi.core.chunks {
	import flash.utils.ByteArray;

	public class InfoChunk {
		public var tags:Array = [];
		public function InfoChunk(data:ByteArray)	{
			while(data.bytesAvailable) {
				var type:String = data.readMultiByte(4, "utf-8");
				var size:int = data.readInt();
				var value:String = data.readMultiByte(size, "utf-8");
				tags[type] = value;
			}
		}
	}
}